﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011A9 RID: 4521
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SharePunkLordMonsterScRsp : IMessage<SharePunkLordMonsterScRsp>, IMessage, IEquatable<SharePunkLordMonsterScRsp>, IDeepCloneable<SharePunkLordMonsterScRsp>, IBufferMessage
	{
		// Token: 0x17003933 RID: 14643
		// (get) Token: 0x0600CA64 RID: 51812 RVA: 0x0022150B File Offset: 0x0021F70B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SharePunkLordMonsterScRsp> Parser
		{
			get
			{
				return SharePunkLordMonsterScRsp._parser;
			}
		}

		// Token: 0x17003934 RID: 14644
		// (get) Token: 0x0600CA65 RID: 51813 RVA: 0x00221512 File Offset: 0x0021F712
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SharePunkLordMonsterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003935 RID: 14645
		// (get) Token: 0x0600CA66 RID: 51814 RVA: 0x00221524 File Offset: 0x0021F724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SharePunkLordMonsterScRsp.Descriptor;
			}
		}

		// Token: 0x0600CA67 RID: 51815 RVA: 0x0022152B File Offset: 0x0021F72B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SharePunkLordMonsterScRsp()
		{
		}

		// Token: 0x0600CA68 RID: 51816 RVA: 0x00221534 File Offset: 0x0021F734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SharePunkLordMonsterScRsp(SharePunkLordMonsterScRsp other) : this()
		{
			this.uid_ = other.uid_;
			this.retcode_ = other.retcode_;
			this.shareType_ = other.shareType_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CA69 RID: 51817 RVA: 0x00221588 File Offset: 0x0021F788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SharePunkLordMonsterScRsp Clone()
		{
			return new SharePunkLordMonsterScRsp(this);
		}

		// Token: 0x17003936 RID: 14646
		// (get) Token: 0x0600CA6A RID: 51818 RVA: 0x00221590 File Offset: 0x0021F790
		// (set) Token: 0x0600CA6B RID: 51819 RVA: 0x00221598 File Offset: 0x0021F798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17003937 RID: 14647
		// (get) Token: 0x0600CA6C RID: 51820 RVA: 0x002215A1 File Offset: 0x0021F7A1
		// (set) Token: 0x0600CA6D RID: 51821 RVA: 0x002215A9 File Offset: 0x0021F7A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003938 RID: 14648
		// (get) Token: 0x0600CA6E RID: 51822 RVA: 0x002215B2 File Offset: 0x0021F7B2
		// (set) Token: 0x0600CA6F RID: 51823 RVA: 0x002215BA File Offset: 0x0021F7BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordShareType ShareType
		{
			get
			{
				return this.shareType_;
			}
			set
			{
				this.shareType_ = value;
			}
		}

		// Token: 0x17003939 RID: 14649
		// (get) Token: 0x0600CA70 RID: 51824 RVA: 0x002215C3 File Offset: 0x0021F7C3
		// (set) Token: 0x0600CA71 RID: 51825 RVA: 0x002215CB File Offset: 0x0021F7CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x0600CA72 RID: 51826 RVA: 0x002215D4 File Offset: 0x0021F7D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SharePunkLordMonsterScRsp);
		}

		// Token: 0x0600CA73 RID: 51827 RVA: 0x002215E4 File Offset: 0x0021F7E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SharePunkLordMonsterScRsp other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.Retcode == other.Retcode && this.ShareType == other.ShareType && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CA74 RID: 51828 RVA: 0x00221650 File Offset: 0x0021F850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ShareType != PunkLordShareType.None)
			{
				num ^= this.ShareType.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CA75 RID: 51829 RVA: 0x002216E0 File Offset: 0x0021F8E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CA76 RID: 51830 RVA: 0x002216E8 File Offset: 0x0021F8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CA77 RID: 51831 RVA: 0x002216F4 File Offset: 0x0021F8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Uid);
			}
			if (this.ShareType != PunkLordShareType.None)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.ShareType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CA78 RID: 51832 RVA: 0x00221788 File Offset: 0x0021F988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ShareType != PunkLordShareType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ShareType);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CA79 RID: 51833 RVA: 0x00221810 File Offset: 0x0021FA10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SharePunkLordMonsterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ShareType != PunkLordShareType.None)
			{
				this.ShareType = other.ShareType;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CA7A RID: 51834 RVA: 0x00221888 File Offset: 0x0021FA88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CA7B RID: 51835 RVA: 0x00221894 File Offset: 0x0021FA94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.Uid = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.ShareType = (PunkLordShareType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005135 RID: 20789
		private static readonly MessageParser<SharePunkLordMonsterScRsp> _parser = new MessageParser<SharePunkLordMonsterScRsp>(() => new SharePunkLordMonsterScRsp());

		// Token: 0x04005136 RID: 20790
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005137 RID: 20791
		public const int UidFieldNumber = 11;

		// Token: 0x04005138 RID: 20792
		private uint uid_;

		// Token: 0x04005139 RID: 20793
		public const int RetcodeFieldNumber = 3;

		// Token: 0x0400513A RID: 20794
		private uint retcode_;

		// Token: 0x0400513B RID: 20795
		public const int ShareTypeFieldNumber = 13;

		// Token: 0x0400513C RID: 20796
		private PunkLordShareType shareType_;

		// Token: 0x0400513D RID: 20797
		public const int MonsterIdFieldNumber = 6;

		// Token: 0x0400513E RID: 20798
		private uint monsterId_;
	}
}
